package cn.rkylin.oms.system.messageDefine.vo;

import org.apache.commons.lang.StringUtils;

import cn.rkylin.oms.system.messageDefine.domain.OMS_MESSAGE_SHOP;

public class MessageShopVo extends OMS_MESSAGE_SHOP{
	
	/**
	 * 序列号
	 */
	private static final String OPERATION_BTN_FREE = "<button  MessageID=\"%s\" type=\"button\" class=\"btn btn-success btn-xs operationShopFree\"><i class=\"fa fa-edit\"></i>&nbsp;自定义</button>";
	private static final long serialVersionUID = 5803839939171440398L;
	private static final String STATUS_CHK = "<input id=\"chkItem\" name=\"chkItem\" type=\"checkbox\" mid=\"%s\" /></input>";
	private String operationShop;

	private String chk;;
	private String shopType;
	
	private String template;
	
	private String validate;
	
	public String getTemplate() {
		return template;
	}
	public void setTemplate(String template) {
		this.template = template;
	}

	public String getValidate() {
		return validate;
	}
	public void setValidate(String validate) {
		this.validate = validate;
	}

	private String shopName;
	private String shopDeleted;
	public String getShopDeleted() {
		return shopDeleted;
	}
	public void setShopDeleted(String shopDeleted) {
		this.shopDeleted = shopDeleted;
	}
	
	private String orderBy;
	public String getShopName() {
		return shopName;
	}
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	private String enable;
	
	private String prjName;
	
	
	
	public String getShopType() {
		return shopType;
	}
	public void setShopType(String shopType) {
		this.shopType = shopType;
	}
	
	public String getEnable() {
		return enable;
	}
	public void setEnable(String enable) {
		this.enable = enable;
	}
	public String getPrjName() {
		return prjName;
	}
	public void setPrjName(String prjName) {
		this.prjName = prjName;
	}
	public String getOperationShop() {
		return operationShop;
	}
	public void setOperationShop(String operationShop) {
		StringBuffer opButton = new StringBuffer();
		if (StringUtils.isNotEmpty(getMsId())) {
				opButton.append(String.format(OPERATION_BTN_FREE, getMsId()));
				opButton.append("&nbsp;");
		}
		this.operationShop = opButton.toString();;
	}
	public String getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	public String getChk() {
		return chk;
	}
	public void setChk(String chk) {
		this.chk = String.format(STATUS_CHK, this.getMsId()).toString();
	}
	
	
	
}
